package com.wn.entity;

import com.wn.validation_group.ProductInAddGroup;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @ author     ：NST
 * @ date       ：Created in 2022/10/19 11:43
 * @ description：生产入库申请表
 * @ modified By：
 * @ version:     1.0
 */
@Data
public class ProductInWarehouseApplication {
    private int id;
    @NotNull(message = "申请人不能为空", groups = ProductInAddGroup.class)
    private Hr applicant;                 //申请人
    private String inWarehouseTime;      //入库时间
    @Min(value = 1, message = "入库数量不得小于1", groups = ProductInAddGroup.class)
    private int number;                  //数量
    private String identifier;           //申请表编号
    @NotEmpty(message = "工单号不得为空", groups = ProductInAddGroup.class)
    private String workOrderNumber;      //工单号
    public Integer materialNumberId;    //物料档案编号
    private Material materialArchive;    //物料档案信息
    @NotEmpty(message = "流程信息不得为空", groups = ProductInAddGroup.class)
    private String activitiInstanceId;   //流程id
}
